package com.jbm.jbmsupplier.util.enums;

/**
 * Created by lyh on 2017/3/2.
 *  商家状态
 */
public enum BusinessStatus {
    NotAudit (0), //待审核
    Normal(1), // 审核通过
    Refuse (2); //审核退回
    // 定义私有变量
    private int nCode ;

    // 构造函数，枚举类型只能为私有
    private BusinessStatus(int _nCode) {
        this.nCode = _nCode;
    }

    @Override
    public String toString() {
        return String.valueOf (  this.nCode);
    }

    public int toValue(){
        return   this.nCode;
    }
}
